package com.lzy.cloud.order.constants;

public class OrderDistributePrefix {

	/** 订单编号:订单号 */
	public static final String ORDER_ID = "orderId:";
	/** 订单申请售后的ID:订单号 */
	public static final String REFUND_ORDER_ID = "refundOrderId:";
	/** 订单申请售后的ID:申请售后的ID */
	public static final String REFUND_ID = "refund:";
	/** 订单编号锁时间 :毫秒 */
	public static final int LOCK_ORDER_TIME = 100;
	/** list集合:未支付的订单 */
	public static final String DELAYF_ROMPAY = "payOrder:";
	/** 任务：未支付的订单 */
	public static final String QUEUE_NOPAY = "queueNoPay:";
	/** 发送短信:订单号 */
	public static final String SEND_MSG_ORDER_ID = "sendMsgOrderId:";
	/**创建订单余额扣除**/
	public static final String DUDECT_BALANCE = "dudectBalance";

	/**
	 * 处理订单
	 */
	public static final class ActionOrder {
		/** 订单确认 */
		public static final String COMFIRM = "comfirmOrderId:";
		/** 订单取消 */
		public static final String CANCLE = "cancleorderid:";
		/** 订单发送短信 */
		public static final String SEND_MSG = "sendmsgorderid:";

	}

	/**
	 * 订单队列名称
	 */
	public static final class QueueOrder {
		public static final String ZSET_LOCK="zsetlock";
		/** 陪你玩 - 导游确认集合操作 */
		public static final String ZSET_LOCK_GUIDE="zsetlock:guide";
		/** 如果是zset集合，请加上改前缀 */
		public static final String ZSET = "zset:";
		/** 订单支付时间 */
		public static final String QUEUE_ORDER_PAY_TIME = "queue:order:paytime";
		/** 订单支付确认收货 */
		public static final String QUEUE_ORDER_COMFIRM = "queue:order:comfirm";
		/** 订单退定、取消 */
		public static final String QUEUE_ORDER_REFUNDMONEY = "queue:order:refundmoney";
		/** 订单库存、券*/
		public static final String QUEUE_ORDER_REFUNDSTOCK = "queue:order:refundstock";
		/** 订单分利 */
		public static final String QUEUE_ORDER_PROFIT = "queue:order:profit";
		/** 订单短信 */
		public static final String QUEUE_ORDER_MSG = "queue:order:msg";
		/** 订单 - 陪你玩 - 导游确认 */
		public static final String QUEUE_ORDER_GUIDE_CONFIRM = "queue:order:guide:confirm";
		/** 订单消息（短信、站内信、APP推送） */
		public static final String QUEUE_ORDER_MESSAGE = "queue:order:message";

		/**
		 *汽摩券订单（支付前）
		 */
		public static final String QUEUE_ORDER_PREPAY_MOTOR = "queue_order_prepay_motor:";

		/**
		 *汽摩券订单（核销后）
		 */
		public static final String QUEUE_ORDER_USED_MOTOR = "queue_order_used_motor:";

		/** 火车票占座回调超时（1.5分钟） */
		public static final String QUEUE_TRAIN_PLACE_ORDER = "queue:train:place:order";

		/** 定时请求火车票订单详细状态（5秒） */
		public static final String QUEUE_TRAIN_ORDER_STATUS = "queue:train:order:status";

		/** 火车票下单 **/
		public static final String QUEUE_ORDER_TRAIN_SEAT = "queue:order:train:seat";
		/** 火车票订单支付时间 */
		public static final String QUEUE_TRAIN_ORDER_PAY_TIME = "queue:train:order:paytime";

	}

	/**
	 * 订单缓存名称
	 */
	public static final class Cache {
		/** 订单分利记录缓存 */
		public static final String QUEUE_ORDER_PROFIT_RECORD = "queue:order:profit:record";
	}

	/** 字典： 用户收货地址数量缓存 */
	public static final String USER_ADDRESS = "dic:user_address";
	/** 用户收货地址数量缓存 */
	public static final String USER_ADDRESS_COUNT = "userAddressCount:";
	/** 除房车销售以为的业务板块，未付款时间 */
	public static final String OUTDOOR_PAY_TIME = "dic:outDoor_pay_time";
	/** 房车销售，未付款时间 */
	public static final String TOURCARSALE_PAY_TIME = "dic:tourCarSale_pay_time";
}
